﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2"%>

<%@ Register src="Control/ListCalender.ascx" tagname="ListCalender" tagprefix="uc1" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="CSS/Opplus.css" rel="stylesheet" type="text/css" />
    <script src="Scripts/jquery-1.8.3.min.js" type="text/javascript"></script>
    <script type="text/javascript">
       /* $(inicializar);

        function inicializar() {
            // $("table#GridView1 td").click(alerta);
            $("table#GridView1 td").click(function () {
                cell = this.cellIndex;
                //alert($(this).closest('table').find('th:eq(' + cell + ')').text());
                alert($(this).closest('table').find('th').eq(this.cellIndex).text());
            });
        }

        function alerta() {
            alert("funciona");
        }*/
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        
        <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
        </asp:ToolkitScriptManager>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <br />
                <asp:GridView ID="GridView1" runat="server" EnableModelValidation="True" 
                    onrowdatabound="GridView1_RowDataBound" ondatabound="GridView1_DataBound" >

                    <EmptyDataRowStyle BorderStyle="Solid" />
                    <HeaderStyle CssClass="CabeceraTabla" />
                    <AlternatingRowStyle BackColor="#F4F4F4" />
                    <RowStyle Font-Size="12px"/>
                    <SelectedRowStyle BackColor="#CCCCCC" />
                </asp:GridView>
                <br />
            </ContentTemplate>
        </asp:UpdatePanel>
        <br />
        
 <%--         <asp:Panel ID="pnlPopUpAusencia" runat="server" CssClass="popup" Style="display: block">
                <div class="containerPopup" style="width: 550px;">
                    <div class="headerPopup">
                        <img alt="" class="style4" src="img\warning.jpg" /><br />
                        <asp:Label ID="lblMotivo" runat="server" CssClass="msg" Text="Seleccione el tipo de incidencia." />
                    </div>
                    <div class="footerPopup">
                        <center>
                            <br />
                            <asp:Label ID="lblInicioHorasAusencia" runat="server" CssClass="msg" Text="Inicio incidencia: " EnableViewState="false" />
                            <select id="ddlInicioHorasAusencia" runat="server">
                               <option value="8" selected="selected">08</option>
                               <option value="9">09</option>
                               <option value="10">10</option>
                               <option value="11">11</option>
                               <option value="12">12</option>
                               <option value="13">13</option>
                               <option value="14">14</option>
                               <option value="15">15</option>
                               <option value="16">16</option>
                               <option value="17">17</option>
                               <option value="18">18</option>
                               <option value="19">19</option>
                               <option value="20">20</option>
                               <option value="21">21</option>
                               <option value="22">22</option>
                               <option value="23">23</option>
                               <option value="00">00</option>
                               <option value="01">01</option>
                               <option value="02">02</option>
                               <option value="03">03</option>
                               <option value="04">04</option>
                               <option value="05">05</option>
                               <option value="06">06</option>
                               <option value="07">07</option>
                           </select>

                            <select ID="ddlInicioMinutosAusencia" runat="server">
                                <option value="00" selected="selected">00</option>
                                <option value="05">05</option>
                                <option value="10">10</option>
                                <option value="15">15</option>
                                <option value="20">20</option>
                                <option value="25">25</option>
                                <option value="30">30</option>
                                <option value="35">35</option>
                                <option value="40">40</option>
                                <option value="45">45</option>
                                <option value="50">50</option>
                                <option value="55">55</option>
                            </select>
                            
                            <asp:TextBox ID="txtInicioHorasAusencia" runat="server" Width="100px"></asp:TextBox>
                            &nbsp; &nbsp; &nbsp; &nbsp;
                            <asp:Label ID="lblFinHorasAusencia" runat="server" CssClass="msg" Text="Fin incidencia: " />
                          
                            <select id="ddlFinHorasAusencia" runat="server">
                                <option value="8" selected="selected">08</option>
                               <option value="9">09</option>
                               <option value="10">10</option>
                               <option value="11">11</option>
                               <option value="12">12</option>
                               <option value="13">13</option>
                               <option value="14">14</option>
                               <option value="15">15</option>
                               <option value="16">16</option>
                               <option value="17">17</option>
                               <option value="18">18</option>
                               <option value="19">19</option>
                               <option value="20">20</option>
                               <option value="21">21</option>
                               <option value="22">22</option>
                               <option value="23">23</option>
                               <option value="00">00</option>
                               <option value="01">01</option>
                               <option value="02">02</option>
                               <option value="03">03</option>
                               <option value="04">04</option>
                               <option value="05">05</option>
                               <option value="06">06</option>
                               <option value="07">07</option>
                           </select>

                           <select ID="ddlFinMinutosAusencia" runat="server">
                                <option value="00" selected="selected">00</option>
                                <option value="05">05</option>
                                <option value="10">10</option>
                                <option value="15">15</option>
                                <option value="20">20</option>
                                <option value="25">25</option>
                                <option value="30">30</option>
                                <option value="35">35</option>
                                <option value="40">40</option>
                                <option value="45">45</option>
                                <option value="50">50</option>
                                <option value="55">55</option>
                            </select>

                            
                            <asp:TextBox ID="txtFinHorasAusencia" runat="server" Width="100px"></asp:TextBox>
                            <asp:Label ID="lblHorasGeneradasAusencia" runat="server" CssClass="msg" Text="Horas generadas: " />
                            <asp:TextBox ID="txtHorasGeneradasAusencia" runat="server" Width="50px"></asp:TextBox>
                            <br />
                            <br />
                            <asp:Label ID="Label3" runat="server" CssClass="msg" Text="Mantiene dieta de comida: " />
                            <asp:CheckBox ID="chxDieta" runat="server" />
                            &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; 
                            <asp:Label ID="Label4" runat="server" CssClass="msg" Text="Horas especiales: " />
                            <asp:CheckBox ID="chxHorasEspeciales" runat="server" /> 
                            <br />
                            <br />
                            <asp:SqlDataSource ID="sqlPopUpAusencia" runat="server" ConnectionString="<%$ ConnectionStrings:UsuariosOpPlusSQLConnectionString %>"
                                SelectCommand="SELECT IdTipoAusencia, CodigoTipoAusencia, DescripcionTipoAusencia, PierdeComidaPorDefecto, CodigoTipoAusencia + ' / ' + DescripcionTipoAusencia AS Combo FROM Vacaciones_TipoAusencia">
                            </asp:SqlDataSource>
                        </center>
                        <asp:Label ID="Label1" runat="server" Text="Tipo Incidencia:  "></asp:Label>
                        <asp:DropDownList ID="ddlTipoAusencia" runat="server" DataSourceID="sqlPopUpAusencia"
                            DataTextField="Combo" DataValueField="IdTipoAusencia" AppendDataBoundItems="true"
                            EnableViewState="false" Width="430px" AutoPostBack="True" OnDataBound="ddlTipoAusencia_DataBound"
                            OnSelectedIndexChanged="ddlTipoAusencia_SelectedIndexChanged">
                        </asp:DropDownList>
                        <br />
                        <asp:SqlDataSource ID="SqlTipoJornada" runat="server" ConnectionString="<%$ ConnectionStrings:UsuariosOpPlusSQLConnectionString %>"
                            SelectCommand="SELECT IdTipoJornada, CodigoTipoJornada, DescripcionTipoJornada, Ayuda, Compensacion, Horas, Equivalencia, CodigoTipoJornada + ' / ' + DescripcionTipoJornada AS Combo FROM Vacaciones_TipoJornada">
                        </asp:SqlDataSource>
                        <br />
                        <asp:Label ID="Label2" runat="server" Text="Tipo de Jornada: "></asp:Label>
                        <asp:DropDownList ID="ddlTipoJornada" runat="server" DataSourceID="SqlTipoJornada"
                            DataTextField="Combo" DataValueField="IdTipoJornada" AppendDataBoundItems="true"
                            EnableViewState="false" Width="430px" AutoPostBack="false" Enabled="False" OnDataBound="ddlTipoJornada_DataBound"
                            OnSelectedIndexChanged="ddlTipoJornada_SelectedIndexChanged">
                        </asp:DropDownList>
                        <br />
                        <center>
                            <br />
                            <br />
                            &nbsp; &nbsp;
                            <asp:Button ID="BtnOK" runat="server" CssClass="Botones" Text="Aceptar" Width="70px"
                                OnClick="BtnOK_Click" />
                            <asp:Button ID="BtnNO" runat="server" CssClass="Botones" Text="Cancelar" Width="70px"
                                OnClick="BtnNO_Click" />
                            <asp:Button ID="BtnBorrar" runat="server" Text="Borrar" CssClass="Botones" Width="70px"
                                OnClick="BtnBorrar_Click" />
                        </center>
                    </div>
                </div>
            </asp:Panel> --%>

    </div>
    </form>
</body>
</html>
